package ssf.app.action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.*;
import ssf.app.service.EmployeeService;
import ssf.app.service.ServiceManager;


public class ShowDetailAction extends BaseAction
{

    public ShowDetailAction()
    {
    }

    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
        throws Exception
    {
        String empId = request.getParameter("empId");
        Map employee = getServMgr().getEmployeeService().showDetail(empId);
        request.setAttribute("employee", employee);
        return mapping.findForward("showdetail");
    }
}
